# $Id$
# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=libxp
pkgver=1.0.3
pkgrel=1
pkgdesc="X11 X Print Library"
arch=('i686' 'x86_64')
license=('custom')
url="https://xorg.freedesktop.org/"
depends=('libxext' 'printproto')
makedepends=('xorg-util-macros')
source=(${url}/releases/individual/lib/libXp-${pkgver}.tar.bz2{,.sig})
license=('custom')
sha256sums=('7f360c9905849c3587d48efc0f0ecbc852c19f61a52b18530d6b005cb9148c57'
            'SKIP')
validpgpkeys=('3BB639E56F861FA2E86505690FDD682D974CA72A') #  "Matt Turner <mattst88@gmail.com>"

build() {
  cd "${srcdir}/libXp-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/libXp-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}
